//
//  DYOrderMenuView.h
//  DYHospital
//
//  Created by 胡金东 on 16/3/24.
//  Copyright © 2016年 胡金东. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface DYOrderMenuView : UIView<UITableViewDataSource,UITableViewDelegate,UICollectionViewDataSource,UICollectionViewDelegate,UICollectionViewDelegateFlowLayout>

@property (nonatomic,strong) NSArray *allData;

@property (nonatomic,copy) id block;
//是否，记录滑动位置
@property (nonatomic,assign) BOOL isRecordLastScroll;
// 记录滑动位置 是否需要 动画
@property (nonatomic,assign) BOOL isRecordLastScrollAnimated;
@property (nonatomic,assign) NSInteger selectIndex;
//选中指定 行数
@property (nonatomic,assign) NSInteger needToScrollerIndex;
//左边背景颜色
@property (nonatomic,strong) UIColor *leftBgColor;
//左边点文字的颜色
@property (nonatomic,strong) UIColor *leftSelectColor;
//左边点中背景的颜色
@property (nonatomic,strong) UIColor *leftSelectBgColor;
//左边未点中文字颜色
@property (nonatomic,strong) UIColor *leftUnSelectColor;
//左边未点中背景颜色
@property (nonatomic,strong) UIColor *leftUnSelectBgColor;
//tablew 的分割线
@property (nonatomic,strong) UIColor *leftSeparatorColor;

-(instancetype)initwithFrame:(CGRect)frame WithData:(NSArray *)data WithSelectIndex:(void(^)(NSInteger left,NSInteger right, id info))selectIndex;

@end

@interface rightMenu : NSObject
//菜单图片名
@property (nonatomic,copy) NSString *urlName;
//菜单名
@property (nonatomic,copy) NSString *menuName;
//菜单ID
@property (nonatomic,copy) NSString *ID;
//下一级菜单
@property (nonatomic,strong) NSArray *nextArray;
//菜单层数
@property (nonatomic,assign) NSInteger menuNumber;
@property (nonatomic,assign) float offsetScroller;

@end